package lesson3;

public class Demo1 {
    public static void main(String[] args) {
        String str1 = "0123456789";
        String subStr =  str1.substring(2);
        System.out.println(subStr);
        subStr = str1.substring(2,6);
        System.out.println(subStr);
        System.out.println("**********************");
        String str11 = "hello world!!!";
        String str22 = "world!!!";
        System.out.println(str11.contains(str22));
        System.out.println(str11.startsWith("hel"));
        System.out.println(str11.endsWith("!!!"));
        System.out.println(str22.equals("world!!!"));
        System.out.println(str22.equalsIgnoreCase("WoRld!!!"));
        System.out.println("***********************");
        char[] arr = {'a','b','c','d','e','f'};
        System.out.println(String.copyValueOf(arr));
        System.out.println(String.copyValueOf(arr,1,3));
        System.out.println(String.valueOf(100));
        System.out.println(String.valueOf(new Pedrson()));
        System.out.println(str22.toUpperCase());
    }
}
